<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/4/18
 * Time: 16:05
 */
namespace Home\Model;
use Think\Model;

class MembersModel extends Model
{
    protected $tableName='ucenter_member';
    public function getDataById($uid = 0)
    {
        $member = D('Members');
        $data = $member->join('as m left join iic_sites s on m.id = s.user_id')
            ->field('s.title,s.url,s.user_id')->where(" m.id = '{$uid}'")->select();
        return $data;
    }


}